/*
 * @Author: MoWanPing
 * @Date: 2024-01-23 13:51:44
 * @LastEditTime: 2024-02-28 15:27:28
 * @LastEditors: MoWanPing
 * @Description: 
 * @FilePath: \jnks_low_air_front_gov_online\src\api\dataManagement\device.js
 */
import request from '@/utils/request';

//获取设备信息列表
export function getDeviceList(query, data) {
    return request({
        url: '/system/data/deviceList',
        method: 'post',
        params: query,
        data
    })
}

//根据设备编号获取设备详细信息
export function getDeviceDetail(deviceId) {
    return request({
        url: '/system/data/device/' + deviceId,
        method: 'get'
    })
}

//根据机身序列号获取设备详细信息
export function getDetailByDeviceSn(deviceSn) {
    return request({
        url: '/system/data/deviceSn/' + deviceSn,
        method: 'get'
    })
}

// 获取设备详情
export function getDroneDetail(query) {
    return request({
        url: "/system/device/detail",
        method: 'get',
        params:query
    })
}